package org.example.util;

/**
 * @Auther:Liu
 * @Testname:ResultTool
 * @Date:2025/7/29 11:27
 */
public class ResultTool {

    public static JsonResult success(Object data) {
        return new JsonResult(data);
    }


    public static JsonResult fail(int code, String error) {
        return new JsonResult(code, error);
    }
}
